<form enctype="multipart/form-data" id="form" name="form" method="POST" action="/expressions/index/updategroup/<?php echo $ctx->group_id; ?>">
		<div id="Compose">
			<div class="pad_t8">
			<label>Name</label><input type="text" id="groupname" name="groupname" value="<?php echo $ctx->result['name'];?>" />
			<div class="clear"></div>
			</div>
			<div class="pad_t8">
			<label>Logo</label><input type="file" id="file" name="file" value="" />
			<div class="clear"></div>
			</div>
			<div class="pad_t8">
			<label>&nbsp;</label><p><b>Note: Upload only jpg, jpeg, gif, png files. (Max upload size: 3MB)</b></p>
			<div class="clear"></div>
			</div>
			<div class="pad_t8">
			<label>Description</label><textarea name="messageText" id="messageText"><?php echo $ctx->result['description'];?></textarea>
			<div class="clear"></div>
		</div>
		<div class="pad_t8 pad_1108">
		<a class="Button" href="javascript:void(0);" onclick="updategroups();"><span>Update</span></a>
		</div>
		<div class="clear"></div>
		</div>
	</form>
<script>
//<![CDATA[
function updategroups()
{
	name = $('#groupname').val();
	message = $('#messageText').val();
	//alert(message+"   "+name);return false;
if(name =='')
{	
	alert('please enter name');return false;
}
if(message =='')
{	
	alert('please enter message');return false;
}
	document.getElementById('form').submit();
}	
//]]>
</script>